export const routes = [
  {
    path: "/login",
    component: () => {
      return import("@/views/ternimal/login.vue");
    },
    name: "Login",
    meta: {
      hidden: true,
      title: "登录",
    },
  },
  {
    path: "/",
    component: () => import("@/layout/index.vue"),
    redirect: "/home",
    name: "Home",
    meta: {
      title: "首页",
    },
    children: [
      {
        path: "/home",
        name: "IndexView",
        component: () => import("@/views/ternimal/index"),
        meta: {
          title: "首页",
          icon: "home",
          class: "app-home",
        },
      },
      {
        path: "/terminal",
        component: () => import("@/views/ternimal/terminal.vue"),
        name: "Terminal",
        meta: {
          title: "终端管理",
          icon: "desktop",
          class: "app-terminal",
        },
      },
      {
        path: "/policy",
        redirect: "/policy/virus",
        component: () => import("@/layout/main.vue"),
        meta: {
          title: "策略中心",
          icon: "file-protect",
        },
        children: [
          {
            path: "/policy/virus",
            component: () => import("@/views/ternimal/virus.vue"),
            name: "Virus",
            meta: {
              title: "病毒查杀",
              icon: "setting",
            },
          },
          {
            path: "/policy/protect",
            component: () => import("@/views/ternimal/protect.vue"),
            name: "Protect",
            meta: {
              title: "实时防护",
              icon: "setting",
            },
          },
        ],
      },
      {
        path: "/response",
        component: () => import("@/views/ternimal/response.vue"),
        name: "Response",
        meta: {
          title: "响应中心",
          icon: "cloud",
        },
      },
      {
        path: "/system",
        name: "System",
        redirect: "/system/user",
        component: () => import("@/layout/main.vue"),
        meta: {
          title: "系统设置",
          icon: "setting",
        },
        children: [
          {
            path: "/system/user",
            component: () => import("@/views/sys-manage/user.vue"),
            name: "SysManageUser",
            meta: {
              title: "管理员管理",
              icon: "user",
            },
          },
          {
            path: "/system/role",
            component: () => import("@/views/sys-manage/role.vue"),
            name: "SysManageRole",
            meta: {
              title: "管理员角色",
              icon: "usergroup-add",
            },
          },
          {
            path: "/system/organization",
            component: () => import("@/views/sys-manage/organization.vue"),
            name: "SysManageOrganization",
            meta: {
              title: "组织管理",
              icon: "cluster",
            },
          },
          {
            path: "/system/logStorage",
            component: () => import("@/views/sys-manage/logStorage.vue"),
            name: "SysManageLogStorage",
            meta: {
              title: "日志配置",
              icon: "file-text",
            },
          },
          {
            path: "/system/timeLock",
            component: () => import("@/views/sys-manage/time-lock.vue"),
            name: "SysManageTimeLock",
            meta: {
              title: "系统时间同步",
              icon: "clock-circle",
            },
          },
        ],
      },
    ],
  },
];
